package com.example.mybatisplus.mapper;

import com.example.mybatisplus.model.domain.Area;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author lxp
 * @since 2024-07-17
 */
@Mapper
public interface AreaMapper extends BaseMapper<Area> {
    @Select("SELECT DISTINCT areaName FROM mydb.area WHERE isDeleted=0")
    List<String> getAllAreaNames();

}
